package com.yanqu.road.entity.config.goods;

public class MallWheelResult {

    //开服时间
    private int openZeroTime;

    //活动开始时间
    private int beginZeroTime;

    //活动开始到现在的天数
    private int gapDay;

    //开始档位
    private int round;

    public MallWheelResult(int openZeroTime, int beginZeroTime, int gapDay, int round) {
        this.openZeroTime = openZeroTime;
        this.beginZeroTime = beginZeroTime;
        this.gapDay = gapDay;
        this.round = round;
    }

    public int getOpenZeroTime() {
        return openZeroTime;
    }

    public void setOpenZeroTime(int openZeroTime) {
        this.openZeroTime = openZeroTime;
    }

    public int getBeginZeroTime() {
        return beginZeroTime;
    }

    public void setBeginZeroTime(int beginZeroTime) {
        this.beginZeroTime = beginZeroTime;
    }

    public int getGapDay() {
        return gapDay;
    }

    public void setGapDay(int gapDay) {
        this.gapDay = gapDay;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public int calRound(int allRound, int resetTime){
        return 1 + ((getRound() + (getGapDay() / resetTime)) % allRound);
    }
}
